const env = process.env.NODE_ENV || 'development';
// let env = 'development'
// let env = 'production'
// let env = 'test'
const configs = {
  development: {
    asyncRoutes: true, // true：后端动态路由，false本地路由
    socket: 'ws://192.168.0.54:30208',
    filePreviewAddress: 'http://192.168.0.181:8012/onlinePreview',
  },
  test: {
    asyncRoutes: true, // true：后端动态路由，false本地路由
    socket: 'ws://192.168.0.54:30208',
    filePreviewAddress: 'http://192.168.0.181:8012/onlinePreview',
  },
  production: {
    asyncRoutes: true, // true：后端动态路由，false本地路由
    socket: `ws://${window.location.hostname}:30208`,
    filePreviewAddress: 'http://192.168.0.181:8012/onlinePreview',
  },
};
const config = configs[env];
export default config;
